<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@page import="com.manage.colligationQuery.ColligationQueryOfTxVo"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link href="<%=basePath%>/images/css.css" rel="stylesheet" type="text/css">
<script>
	function print(uri){
		window.open(uri);
	}
</script>
<%	
	String uri = "";
	ColligationQueryOfTxVo vo = new ColligationQueryOfTxVo();
	if(request.getAttribute("colligationQueryOfTxVo") !=null){
		 vo = (ColligationQueryOfTxVo)request.getAttribute("colligationQueryOfTxVo");
		 uri = basePath+"print/printHouseHoldRegister.action?method=printHouseHoldRegister&tun="+vo.getVillage();
	}
 %>
</head>

<body class="bg_003">
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="201" height="30" align="center" background="<%=basePath%>/images/016.jpg"><table width="75%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="25"><img src="<%=basePath%>/images/1.png" width="16" height="16"></td>
        <td><strong>通讯录信息查询</strong></td>
      </tr>
    </table></td>
    <td align="right" background="<%=basePath%>/images/017.jpg" class="zi_006">综合查询</td>
    <td width="39"><img src="<%=basePath%>/images/018.jpg" width="39" height="30"></td>
  </tr>
</table>
<form id="queryForm" name="queryForm" action="<%=path %>/system/colligationQueryOfTx.action" method="post">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="1" bgcolor="#e1e1e2"></td>
        <td height="100" align="center">
        <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#e1e1e1">
          <tr>
            <td width="10%" height="31" align="right" bgcolor="#f5f5f5">姓名：</td>
            <td width="22%" height="31" bgcolor="#f5f5f5"><input name="colligationQueryOfTxVo.name" type="text" id="name" size="14" value=<%=vo.getName() %>></td>
         	<td width="12%" height="31" align="right" bgcolor="#f5f5f5">身份证号：</td>
            <td width="20%" height="31" bgcolor="#f5f5f5"><input name="colligationQueryOfTxVo.idcardnumber" size="14" type="text" id="idcard" width="100%" value=<%=vo.getIdcardnumber() %>></td>
            <td width="16%" height="31" align="right" bgcolor="#f5f5f5">手机号：</td>
            <td width="20%" height="31" bgcolor="#f5f5f5"><input name="colligationQueryOfTxVo.phonenumber" size="14" type="text" id="phonenumber" width="100%" value=<%=vo.getPhonenumber() %>></td>
          </tr>
        </table>
          </td>
        <td width="1" bgcolor="#e1e1e2"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
  			<%
  				if(vo.getName()==null){
  					vo.setName("无");
  				}
  				if(vo.getIdcardnumber()==null){
  					vo.setIdcardnumber("无");
  				}
  				if(vo.getPhonenumber()==null){
  					vo.setPhonenumber("无");
  				}
  				if(vo.getSettle()==null){
  					vo.setSettle("无");
  				}
  				if(vo.getPlatetype()==null){
  					vo.setPlatetype("无");
  				}
  				if(vo.getCar()==null){
  					vo.setCar("无");
  				}
  				if(vo.getPlatenumber()==null){
  					vo.setPlatenumber("无");
  				}
  				if(vo.getBuytime()==null){
  					vo.setBuytime("无");
  				}
  				if(vo.getDrivinttype()==null){
  					vo.setDrivinttype("无");
  				}
  				if(vo.getSquadron()==null){
  					vo.setSquadron("无");
  				}
  				if(vo.getBigvillage()==null){
  					vo.setBigvillage("无");
  				}
  				if(vo.getVillage()==null){
  					vo.setVillage("无");
  				}
  			 %>
  <!-- 所属人信息 -->
        <table id='persontable' width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#e1e1e1">
          <tr>
          <tr>
	        <td width="25" bgcolor="#CCFFCC"><img src="<%=basePath%>/images/1.png" width="16" height="16"></td>
	        <td bgcolor="#CCFFCC"><strong>通讯录详细信息面板</strong></td>
          </tr>
			<tr>
            <td width="10%" height="31" align="right" bgcolor="#f5f5f5">姓名：</td>
            <td width="22%" height="31" bgcolor="#f5f5f5"><input name="colligationQueryOfTxVo.name" type="text" id="name" size="14" disabled='true' value=<%=vo.getName() %>></td>
            <td width="12%" height="31" align="right" bgcolor="#f5f5f5">身份证号：</td>
            <td width="20%" height="31" bgcolor="#f5f5f5"><input size="14"  name="colligationQueryOfTxVo.idcardnumber" type="text" id="idcard" width="100%" disabled='true' value=<%=vo.getIdcardnumber() %>></td>
          	<td width="16%" height="31" align="right" bgcolor="#f5f5f5">移动电话：</td>
            <td width="22%" height="31" bgcolor="#f5f5f5"><input name="colligationQueryOfTxVo.phonenumber" type="text" id="mobile" size="14" disabled='true' value=<%=vo.getPhonenumber() %>></td>
          </tr>
          <tr>
            
            <td width="10%" height="31" align="right" bgcolor="#f5f5f5">有无机动车：</td>
           	<td width="20%" height="31" bgcolor="#f5f5f5"><input size="14"  name="colligationQueryOfTxVo.car" type="text" id="drivercardnum" width="100%" disabled='true' value=<%=vo.getCar()%>></td>
            <td width="12%" height="31" align="right" bgcolor="#f5f5f5">品牌型号：</td>
            <td width="20%" height="31" bgcolor="#f5f5f5"><input name="colligationQueryOfTxVo.platetype" type="text" id="drivercarddate" size="14" disabled='true' value=<%=vo.getPlatetype() %>></td>
         	<td width="16%" height="31" align="right" bgcolor="#f5f5f5">是否落户：</td>
            <td width="20%" height="31" bgcolor="#f5f5f5"><input name="colligationQueryOfTxVo.settle" type="text" id="zd" size="14" disabled='true' value=<%=vo.getSettle() %>></td>
          </tr>
          <tr>
            <td width="10%" height="31" align="right" bgcolor="#f5f5f5">车辆号牌：</td>
            <td width="20%" height="31" bgcolor="#f5f5f5"><input name="colligationQueryOfTxVo.platenumber" type="text" id="getcartype" size="14" disabled='true' value=<%=vo.getPlatenumber() %>></td>
            <td width="12%" height="31" align="right" bgcolor="#f5f5f5">购车时间：</td>
            <td width="22%" height="31" bgcolor="#f5f5f5"><input size="14"  name="colligationQueryOfTxVo.buytime" type="text" id="liveaddress" width="100%" disabled='true' value=<%=vo.getBuytime() %>></td>
          	<td width="16%" height="31" align="right" bgcolor="#f5f5f5">准驾车型：</td>
            <td width="20%" height="31" bgcolor="#f5f5f5"><input name="colligationQueryOfTxVo.drivinttype" type="text" id="zd" size="14" disabled='true' value=<%=vo.getDrivinttype() %>></td>
          </tr>
          
           <tr>
            <td width="10%" height="31" align="right" bgcolor="#f5f5f5">中队：</td>
            <td width="22%" height="31" bgcolor="#f5f5f5"><input size="14"  name="colligationQueryOfTxVo.squadron" type="text" id="valliage" width="100%" disabled='true' value=<%=vo.getSquadron() %>></td>
            <td width="10%" height="31" align="right" bgcolor="#f5f5f5">村：</td>
            <td width="22%" height="31" bgcolor="#f5f5f5"><input size="14"  name="colligationQueryOfTxVo.bigvillage" type="text" id="valliage" width="100%" disabled='true' value=<%=vo.getBigvillage() %>></td>
          	<td width="12%" height="31" align="right" bgcolor="#f5f5f5">屯：</td>
            <td width="20%" height="31" bgcolor="#f5f5f5"><input name="colligationQueryOfTxVo.vallage" type="text" id="tun" size="14" disabled='true' value=<%=vo.getVillage() %>></td>
          </tr>
        </table>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="5" height="5"><img src="<%=basePath%>/images/019.jpg" width="5" height="5"></td>
        <td width="100%" height="5" class="bg_002"></td>
        <td width="5" height="5"><img src="<%=basePath%>/images/020.jpg" width="5" height="5"></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
<%
	if(vo.getVillage()!=null && !vo.getVillage().equals("") &&!vo.getVillage().equals("无")){
 %>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="50" align="right"><input type="submit" name="button" id="button" onclick="print('<%=uri %>')" value="打 印"></td>
  </tr>
</table>
<%
	}
 %>
<table width="603" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="26">&nbsp;</td>
  </tr>
</table>
</body>
</html>